Remove IME_FLAG_FORCE_ASCII from password input IME flags
authorPo Lu <luangruo@yahoo.com>
Wed, 27 Mar 2024 02:03:15 +0000 (10:03 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 27 Mar 2024 02:03:15 +0000 (10:03 +0800)
* java/org/gnu/emacs/EmacsView.java (onCreateInputConnection):
Passwords might also be non-ASCII, and this flag apparently
requests an IME limited to ASCII characters, rather than just
capable of ASCII input.

java/org/gnu/emacs/EmacsView.java

index 5b922212c0b26a6db354498fc444269877d0f8dc..109208b251866d0bdce1be97d545a227a4e80bfa 100644 (file)
@@ -843,10 +843,7 @@ public final class EmacsView extends ViewGroup
       info.imeOptions |= EditorInfo.IME_ACTION_DONE;
 
     if (mode == EmacsService.IC_MODE_PASSWORD)
-      {
-       info.imeOptions |= EditorInfo.IME_FLAG_FORCE_ASCII;
-       info.inputType  |= InputType.TYPE_TEXT_VARIATION_PASSWORD;
-      }
+      info.inputType  |= InputType.TYPE_TEXT_VARIATION_PASSWORD;
 
     /* Set the initial selection fields.  */
     info.initialSelStart = selection[0];